package com.lanchetech.dao;

import com.lanchetech.bean.request.WelfareFlowPageReq;
import com.lanchetech.bean.vo.WelfareFlowVO;
import com.lanchetech.entity.WelfareFlow;

import java.math.BigDecimal;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface WelfareFlowMapper {
    int deleteByPrimaryKey(Long id);

    int insert(WelfareFlow record);

    int insertSelective(WelfareFlow record);

    WelfareFlow selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(WelfareFlow record);

    int updateByPrimaryKey(WelfareFlow record);

    int batchInsert(@Param("list") List<WelfareFlow> list);

    List<WelfareFlowVO> findAllPage(WelfareFlowPageReq req);

    BigDecimal sumReleaseAmount(@Param("userId") Long userId);
}